package com.rla.service;

import com.alibaba.fastjson.JSONObject;
import com.rla.domain.MallOrderAddress;
import com.rla.domain.vo.MallOrderAddressVo;
import com.rla.domain.bo.MallOrderAddressBo;
import com.rla.common.core.page.TableDataInfo;
import com.rla.common.core.domain.PageQuery;
import com.rla.domain.vo.VipUserAddressVo;

import java.util.Collection;
import java.util.List;

/**
 * 订单地址绑定Service接口
 *
 * @author rla
 * @date 2025-08-18
 */
public interface IMallOrderAddressService {

    /**
     * 查询订单地址绑定
     */
    MallOrderAddressVo queryById(String id);

    /**
     * 查询订单地址绑定列表
     */
    TableDataInfo<MallOrderAddressVo> queryPageList(MallOrderAddressBo bo, PageQuery pageQuery);

    /**
     * 查询订单地址绑定列表
     */
    List<MallOrderAddressVo> queryList(MallOrderAddressBo bo);

    /**
     * 新增订单地址绑定
     */
    Boolean insertByBo(MallOrderAddressBo bo);

    /**
     * 修改订单地址绑定
     */
    Boolean updateByBo(MallOrderAddressBo bo);

    Boolean updateByOrderId(MallOrderAddressBo bo);

    /**
     * 校验并批量删除订单地址绑定信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);


    /**
     * 根据订单id查询
     */
    MallOrderAddressVo queryByOrderId(String orderId);

    JSONObject SMQJ(String orderId);
    JSONObject SMQJ1(MallOrderAddress orderAddress);

    JSONObject cancel(String orderId);
}
